﻿@model Exam;
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加新试题</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    @if (TempData["Message"] != null)
    {
        <script>alert('@Html.Raw(TempData["Message"])');</script>
    }

    <div class="container mt-5">
        <div class="row">
            <div class="col-md-8 offset-md-2">
                <div class="card">
                    <div class="card-header bg-primary text-white">
                        添加知识点
                    </div>
                    <div class="card-body">
                        <form asp-controller="ExamPlan" asp-action="UpdSumbit">
                            <td><input type="hidden" value="@Model.exam_plan_id" name="exam_plan_id" /> </td>
                           
                            <div class="form-group">
                                <label for="kp_id">name</label>
                                <input type="text" class="form-control" value="@Model.exam_plan_name" name="exam_plan_name" required>
                            </div>
                            <div class="form-group">
                                <label for="kp_name">总分值</label>
                                <input type="text" class="form-control" value="@Model.exam_total_score" name="exam_total_score" required>
                            </div>
                            <div class="form-group">
                                <label for="exam_plan_desc">简介</label>
                                <textarea class="form-control" rows="14" name="exam_plan_desc" required>@Model.exam_plan_desc</textarea>
                            </div>
                            <div class="form-group">
                                <label for="answer">开始</label>
                                <input type="datetime-local" class="form-control form-control-text" rows="14" name="begin_time" required>@Model.begin_time</input>
                            </div>
                            <div class="form-group">
                                <label for="answer">结束</label>
                                <input type="datetime-local" class="form-control form-control-text" rows="14" name="end_time" required>@Model.end_time</textarea>
                            </div>
                            <div class="form-group">
                                <label for="approval_status">状态</label>
                                <input type="text" class="form-control" value="@Model.approval_status" name="approval_status" required>
                            </div> 
                            <div class="form-group">
                                <label for="approval_status">老师</label>
                                <input type="text" class="form-control" value="@Model.teacher_id" name="teacher_id" required>
                            </div>


                            <div class="text-center">
                                <input type="submit" value="提交" class="btn btn-primary" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
